<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of confg
 *
 * @author Abhishek Lal
 */
//echo 'ok';
//$host = 'sql9.bravehost.com';
//$username = 'adhim';
//$password = 'm76bAoiR2IeThkFKj2GvWy';
//$dbname = 'adhim_2808730';
//
//
//
$host = '127.0.0.1';
$username = 'root';
$password = 'root';
$dbname = 'adhm';



//echo 'Connecting';
$con = mysqli_connect($host, $username, $password, $dbname) or die(mysqli_error($con));
//echo 
//mysql_select_db($dbname);
$p= (isset($_REQUEST['p']) && $_REQUEST['p']!='')?$_REQUEST['p']:'Index';
$result = mysqli_query($con,"SELECT * FROM graphics where recordID='$p'") or die(mysqli_error($con));

//$rowCnt = mysqli_num_rows($result);
//$rowRnd = rand(0, $rowCnt-1);
//mysqli_data_seek($result, $rowRnd);
$rowdata = mysqli_fetch_array($result);





?>
